/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2013
 */

package com.gxuwz.byssxsys.model;

import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import javacommon.base.*;
import javacommon.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.gxuwz.byssxsys.model.*;
import com.gxuwz.byssxsys.dao.*;
import com.gxuwz.byssxsys.service.*;
import com.gxuwz.byssxsys.vo.query.*;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


@Entity
@Table(name = "selected_result")
public class SelectedResult extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "SelectedResult";
	public static final String ALIAS_ID = "主键";
	public static final String ALIAS_SSNO1 = "选题编号";
	public static final String ALIAS_TEACH_NO2 = "教师编号";
	public static final String ALIAS_STU_NO3 = "学号";
	public static final String ALIAS_SELECTED_FLAG4 = "教师决策标识";
	public static final String ALIAS_SRREMARK5 = "备注";
	public static final String ALIAS_REELECT_FLAG6 = "重选标识";
	
	//date formats
	

	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * 主键       db_column: id 
     */ 	
	
	private java.lang.Integer id;
    /**
     * 选题编号       db_column: s_s_no1 
     */ 	
	@Length(max=50)
	private java.lang.String ssno1;
    /**
     * 教师编号       db_column: teach_no2 
     */ 	
	@Length(max=50)
	private java.lang.String teachNo2;
    /**
     * 学号       db_column: stu_no3 
     */ 	
	@Length(max=50)
	private java.lang.String stuNo3;
    /**
     * 教师决策标识       db_column: selected_flag4 
     */ 	
	
	private java.lang.Integer selectedFlag4;
    /**
     * 备注       db_column: s_r_remark5 
     */ 	
	@Length(max=500)
	private java.lang.String srremark5;
    /**
     * 重选标识       db_column: reelect_flag6 
     */ 	
	
	private java.lang.Integer reelectFlag6;
	//columns END


	public SelectedResult(){
	}

	public SelectedResult(
		java.lang.Integer id
	){
		this.id = id;
	}

	

	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	@Id @GeneratedValue(generator="custom-id")
	@GenericGenerator(name="custom-id", strategy = "increment")
	@Column(name = "id", unique = true, nullable = false, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getId() {
		return this.id;
	}
	
	@Column(name = "s_s_no1", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getSsno1() {
		return this.ssno1;
	}
	
	public void setSsno1(java.lang.String value) {
		this.ssno1 = value;
	}
	
	@Column(name = "teach_no2", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getTeachNo2() {
		return this.teachNo2;
	}
	
	public void setTeachNo2(java.lang.String value) {
		this.teachNo2 = value;
	}
	
	@Column(name = "stu_no3", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getStuNo3() {
		return this.stuNo3;
	}
	
	public void setStuNo3(java.lang.String value) {
		this.stuNo3 = value;
	}
	
	@Column(name = "selected_flag4", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getSelectedFlag4() {
		return this.selectedFlag4;
	}
	
	public void setSelectedFlag4(java.lang.Integer value) {
		this.selectedFlag4 = value;
	}
	
	@Column(name = "s_r_remark5", unique = false, nullable = true, insertable = true, updatable = true, length = 500)
	public java.lang.String getSrremark5() {
		return this.srremark5;
	}
	
	public void setSrremark5(java.lang.String value) {
		this.srremark5 = value;
	}
	
	@Column(name = "reelect_flag6", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getReelectFlag6() {
		return this.reelectFlag6;
	}
	
	public void setReelectFlag6(java.lang.Integer value) {
		this.reelectFlag6 = value;
	}
	

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("Ssno1",getSsno1())
			.append("TeachNo2",getTeachNo2())
			.append("StuNo3",getStuNo3())
			.append("SelectedFlag4",getSelectedFlag4())
			.append("Srremark5",getSrremark5())
			.append("ReelectFlag6",getReelectFlag6())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof SelectedResult == false) return false;
		if(this == obj) return true;
		SelectedResult other = (SelectedResult)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

